package com.ruoyi.production.mapper;

import java.util.List;
import com.ruoyi.production.domain.ProductionWorkOrderDetail;
import org.apache.ibatis.annotations.Mapper;

/**
 * 生产工单详情Mapper接口
 *
 * @author jgb
 * @date 2024-10-25
 */
@Mapper
public interface ProductionWorkOrderDetailMapper
{
    /**
     * 查询生产工单详情
     *
     * @param id 生产工单详情主键
     * @return 生产工单详情
     */
    public ProductionWorkOrderDetail selectProductionWorkOrderDetailById(Long id);

    /**
     * 查询生产工单详情列表
     *
     * @param productionWorkOrderDetail 生产工单详情
     * @return 生产工单详情集合
     */
    public List<ProductionWorkOrderDetail> selectProductionWorkOrderDetailList(ProductionWorkOrderDetail productionWorkOrderDetail);

    /**
     * 新增生产工单详情
     *
     * @param productionWorkOrderDetail 生产工单详情
     * @return 结果
     */
    public int insertProductionWorkOrderDetail(ProductionWorkOrderDetail productionWorkOrderDetail);

    /**
     * 修改生产工单详情
     *
     * @param productionWorkOrderDetail 生产工单详情
     * @return 结果
     */
    public int updateProductionWorkOrderDetail(ProductionWorkOrderDetail productionWorkOrderDetail);

    /**
     * 删除生产工单详情
     *
     * @param id 生产工单详情主键
     * @return 结果
     */
    public int deleteProductionWorkOrderDetailById(Long id);

    /**
     * 批量删除生产工单详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProductionWorkOrderDetailByIds(Long[] ids);

    /**
     * 批量删除生产工单详情
     *
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProductionWorkOrderDetailByOrderIds(Long[] orderIds);
}
